package com.example.ccj.b.c.ui.install;


/**
 * 拖动选择数值
 */
public class InstallDragSelect extends InstallItem{
    public InstallDragSelect(){
    }

    public InstallDragSelect(String installName, int def,int min,int max, SelectDragNumberListener select){
        this.installName = installName;
        this.def = def;
        this.min = min;
        this.max = max;
        this.select = select;
    }

    private SelectDragNumberListener select;//点击选择回调
    private int def = 50;//初始数值
    private int min = 100;//最大值
    private int max = 0;//最小值

    @Override
    public int getType() {
        return TYPE_DRAG;
    }

    public SelectDragNumberListener getSelect() {
        return select;
    }

    public void setSelect(SelectDragNumberListener select) {
        this.select = select;
    }

    public int getDef() {
        return def;
    }

    public void setDef(int def) {
        this.def = def;
    }

    public int getMin() {
        return min;
    }

    public void setMin(int min) {
        this.min = min;
    }

    public int getMax() {
        return max;
    }

    public void setMax(int max) {
        this.max = max;
    }
}
